package com.itheima.course.design.entity;

public class Course {
    private String id;
    private String courseCode;
    private String name;
    private String instructor;
    private int maxStudents;

    // 构造方法
    public Course() {}

    public Course(String id, String courseCode, String name, String instructor, int maxStudents) {
        this.id = id;
        this.courseCode = courseCode;
        this.name = name;
        this.instructor = instructor;
        this.maxStudents = maxStudents;
    }

    // Getter和Setter方法
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCourseCode() {
        return courseCode;
    }

    public void setCourseCode(String courseCode) {
        this.courseCode = courseCode;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getInstructor() {
        return instructor;
    }

    public void setInstructor(String instructor) {
        this.instructor = instructor;
    }

    public int getMaxStudents() {
        return maxStudents;
    }

    public void setMaxStudents(int maxStudents) {
        this.maxStudents = maxStudents;
    }
}